package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.TripListModel;
import com.dibang.app.operation.model.impl.TripListModelImpl;
import com.dibang.app.operation.presenter.abs.TripListPresenter;
import com.dibang.app.operation.presenter.impl.TripListPresenterImpl;
import com.dibang.app.operation.view.abs.TripListView;
import com.dibang.app.operation.view.impl.TripListViewImpl;

/**
 * Created by wxl on 2019/8/12.
 */
public class TripListProImpl extends AbsProvider<TripListView, TripListPresenter, TripListModel> {

    @Override
    public TripListView getView() {
        return BeanFactory.getInstance(TripListViewImpl.class);
    }

    @Override
    public TripListPresenter getPresenter() {
        return BeanFactory.getInstance(TripListPresenterImpl.class);
    }

    @Override
    public TripListModel getModel() {
        return BeanFactory.getInstance(TripListModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(TripListViewImpl.class,TripListPresenterImpl.class,TripListModelImpl.class);
    }
}
